package com.gjintel.framework.validateunique.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.gjintel.framework.validateunique.dao.IValidateUniqueDao;
import com.gjintel.framework.validateunique.service.IValidateUniqueService;
import com.gjintel.sdk.base.service.impl.BaseServiceImpl;

/**
 * @description 知识点业务对应的实现
 * @author fengya
 * @date 2015-6-1 下午4:26:11
 */
@Service("validateUniqueService")
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
public class ValidateUniqueServiceImpl extends BaseServiceImpl implements IValidateUniqueService {
	@Autowired
	protected IValidateUniqueDao validateUniqueDao;

	@Override
	public boolean unique(String tableName, String field, String value, String id) {
		return this.validateUniqueDao.unique(tableName, field, value, id);
	}

}
